package com.prs.crm.domain.oa.schedule;

import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-4-16 11:36:41 周期性日程
 */
@Entity
@Table(name="oa_cycleschedule")
public class CycleSchedule extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private IntervalSchedule intervalSchedule;
	private Date startTime;
	private String time;
//	@OneToMany(fetch=FetchType.LAZY,mappedBy="cycleSchedule")
//	private Set<MyThings> myThings;
	
public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	//	@OneToMany(fetch=FetchType.LAZY,mappedBy="cycleSchedules")
//	private Set<OthersThings> othersThings;
//	
//	public Set<MyThings> getMyThings() {
//		return myThings;
//	}
//	public void setMyThings(Set<MyThings> myThings) {
//		this.myThings = myThings;
//	}
//	public Set<OthersThings> getOthersThings() {
//		return othersThings;
//	}
//	public void setOthersThings(Set<OthersThings> othersThings) {
//		this.othersThings = othersThings;
//	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public IntervalSchedule getIntervalSchedule() {
		return intervalSchedule;
	}
	public void setIntervalSchedule(IntervalSchedule intervalSchedule) {
		this.intervalSchedule = intervalSchedule;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
}
